/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pe.edu.upc.dew.controller;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 *
 * @author u201013952
 */
public class MenuServlet extends HttpServlet {
   
    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
        System.out.println("Entrando doGet()...");

       //Recuperar Parametros
        String opcion = request.getParameter("opcion");


        if(opcion.equals("1")){
            request.getRequestDispatcher("opcion1.jsp").forward(request, response);
        }else if(opcion.equals("2")){
            request.getRequestDispatcher("opcion2.jsp").forward(request, response);
        }

        
    } 

    

}
